package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.AgedmallOrderSettingMapper;
import org.linlinjava.litemall.db.domain.AgedmallOrderSetting;
import org.linlinjava.litemall.db.domain.AgedmallOrderSettingExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AgedmallOrderSettingService {
    @Resource
    private AgedmallOrderSettingMapper agedmallOrderSettingMapper;

    public AgedmallOrderSetting getByBusiId(Long busiId) {
        AgedmallOrderSettingExample example = new AgedmallOrderSettingExample();
        example.createCriteria().andBusIdEqualTo(busiId);
        return agedmallOrderSettingMapper.selectOneByExample(example);
    }
}
